home *** CD-ROM | disk | FTP | other *** search
- global folderName, sndPath, gMachine, gSaveSoundVol, gMicAudioFileList, gPictureCastNumBase, gCurPicture, gTabSprite, gWeatherSelection, gMicDurations
-
- on startMovie
- set gCurPicture to 1
- set gPictureCastNumBase to 45
- set folderName to "weather" & gMachine
- set sndPath to the pathName & "snd" & gMachine & "weather" & gMachine
- initForEachMovie(#weather)
- set gMicAudioFileList to list("watrfall.aif", "ankor.aif", "mesa.aif", "marsh.aif", "dosmary.aif", "hongkong.aif", "stones.aif", "neweng.aif")
- set gMicDurations to list(15, 8, 16, 13, 15, 6, 8, 16, 16)
- end
-
- on stopMovie
- end
-
- on doThumbNailLeftRight leftOrRight
- if leftOrRight = -1 then
- if gCurPicture = 1 then
- set gCurPicture to 8
- else
- set gCurPicture to gCurPicture - 1
- end if
- else
- if gCurPicture = 8 then
- set gCurPicture to 1
- else
- set gCurPicture to gCurPicture + 1
- end if
- end if
- doThumbNailAnimation(29, 33 + (gCurPicture - 1), 2, leftOrRight)
- setupThumbNailCounter(gCurPicture, 8)
- NewPicture()
- end
-
- on NewPicture
- set the castNum of sprite 7 to gPictureCastNumBase + ((gCurPicture - 1) * 5)
- set the castNum of sprite 3 to 90 + ((gCurPicture - 1) * 5)
- set the loc of sprite 14 to point(101, 116)
- setMainPhotoLoc(the castNum of sprite 7)
- updateTabs()
- preLoadThisExample()
- end
-
- on preLoadThisExample
- set start to the castNum of sprite 3
- preLoadRange(start, start + 4, 1)
- end
-
- on finishIntro
- set the mouseDownScript to EMPTY
- set the mouseUpScript to EMPTY
- finishIntroBecauseOfMouseClick()
- end
-
- on finishIntroBecauseOfMouseClick
- global gSavePhotoCastNum, start, oldStart, gDoOnMouseDown
- sound stop 2
- set the volume of sound 2 to gSaveSoundVol
- puppetSprite(7, 1)
- set the castNum of sprite 7 to gSavePhotoCastNum
- setMainPhotoLoc(gSavePhotoCastNum)
- updateTabs()
- updateStage()
- set gDoOnMouseDown to EMPTY
- finishIntroCore()
- end
-
- on doWeatherSelectMouseUp
- set the mouseUpScript to EMPTY
- dontPassEvent()
- newWeather(1, 1)
- end
-
- on newWeather doButtonUp, doTheDissolve
- if doButtonUp then
- set the castNum of sprite 3 to the castNum of sprite 3 - (gWeatherSelection + 1)
- end if
- set R to offset(rect(101, 116, 138, 140), 0, gWeatherSelection * 31)
- if gWeatherSelection = 3 then
- set R to offset(R, 0, -2)
- end if
- set the rect of sprite 14 to R
- updateStage()
- set the castNum of sprite 7 to gPictureCastNumBase + ((gCurPicture - 1) * 5) + gWeatherSelection
- if doTheDissolve then
- doDissolve()
- end if
- updateStage()
- end
-